
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

import '../../main.dart';

class ScanModel{

  show(){


    return Container(
      margin: EdgeInsets.only(left: 16.w,right: 16.w),
      padding: EdgeInsets.all(30.r),
      width: double.infinity,
      height: 430.h,
      decoration: BoxDecoration(
        color: Colors.white,
        borderRadius: BorderRadius.all(Radius.circular(4.r)),
      ),
      alignment: Alignment.center,
      child: Column(
        children: [
          SizedBox(height: 20.h,),
          Text("放置图书",style: TextStyle(color: Colors.blueAccent,fontSize: 16.sp,fontWeight: FontWeight.bold),),
          SizedBox(height: 5.h,),
          Text("请在图书放置在感应区",style: TextStyle(color: Colors.blueAccent,fontSize: 12.sp,fontWeight: FontWeight.bold),),
          SizedBox(height: 30.h,),
          Stack(
            alignment: AlignmentDirectional.center,
            children: [
              Image.asset("assets/images/scan_area.png",width:330.w,fit: BoxFit.fitWidth,),
              Positioned(
                top: 50.h,
                right: 0,
                child: Image.asset("assets/images/book.png",width:70.w,fit: BoxFit.fitWidth,),
              )
            ],
          ),

        ],
      ),
    );
  }
}

